package com.bootx.service.impl;

import com.bootx.entity.Member;
import com.bootx.service.MemberService;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Service;

/**
 * @author black
 */
@Service
public class MemberServiceImpl extends BaseServiceImpl<Member,Long> implements MemberService {

    @Override
    public Member getCurrent(HttpServletRequest request) {
        String memberId = request.getHeader("memberId");
        return super.find(Long.valueOf(memberId));
    }
}
